﻿

using System;

namespace 裂开再裂开
{
    class Staffinfo
    {
        public string Staffid { get; set; }
        public string Staffname { get; set; }
        public string Staffidinfo { get; set; }

        public void PrintMsg(string Staffid, string Staffname, string Staffidinfo)
        {
            Console.WriteLine("员工编号：" + Staffid);
            Console.WriteLine("员工姓名：" + Staffname);
            Console.WriteLine("部门信息：" + Staffidinfo);
        }

        public void Info()
        {
            Staffid = "20";
            Staffname = "张三";
            Staffidinfo = "全栈工程师";
        }


        public void Way1()  //无参
        {
            this.Staffid = "20";
            this.Staffname = "张三";
            this.Staffidinfo = "全栈工程师";
            Console.WriteLine("员工编号：" + this.Staffid);
            Console.WriteLine("员工姓名：" + this.Staffname);
            Console.WriteLine("部门信息：" + this.Staffidinfo);

        }



        //********************有参
        public void Way2(string Staffid, string Staffname, string Staffidinfo)
        {
            Staffinfo Staffinfo = new Staffinfo();
            Staffinfo.PrintMsg("20", "张三", "全栈工程师");
        }
    }
}
